<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/page/share/taglib.jsp"%>
<html>
	<head>
		<title>权限设置</title>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<link rel="stylesheet" href="/css/modules.css" type="text/css"
			media="screen" />
		<link rel="stylesheet" href="/css/modules1.css" type="text/css"
			media="screen" />
		<SCRIPT language=JavaScript src="/js/FoshanRen.js"></SCRIPT>
	<script type="text/javascript">
	function checkSelect(){
		var groupids = document.getElementsByName("groupids");				 
		var flag = false ;				 
		for(var i=0;i <groupids.length;i++){ 
			if(groupids[i].checked){ 
				flag = true ; 
				break ; 
			} 
		} 
		if(!flag){ 
			alert("请最少选择一项！"); 
			return false ; 
		} 
	}
	</script>
	</head>
	<body style="background-color:transparent">
	<h2 class="jquery_tab_title">权限设置</h2>
	<div style="padding-top:20px;">
		<s:form action="UserManage!privilegeGroupSet" method="post" onsubmit="return checkSelect()">
			<s:hidden name="userid"></s:hidden>
			<table id="noborder_table"  border="0" cellspacing="0" cellpadding="0">
				<tr>
					<td style="font-size:14px;">
						选择用户所在权限组：
					</td>
					<td style="text-align:left;">
						<c:forEach items="${groups}" var="privilegegroup"	varStatus="statu">
							<input type="checkbox" name="groupids"	value="${privilegegroup.id}"
								<c:forEach items="${usergroups }" var="ug">
									<c:if test="${ug==privilegegroup}">checked</c:if>
								</c:forEach>>${privilegegroup.name}
								<c:if	test="${statu.count%8==0}">
									<br>
								</c:if>
						</c:forEach>
					</td>
				</tr>

				<tr>
					<td colspan="2">
						<input type="submit" name="SYS_SET" value=" 确 定 " class="button">
					</td>
				</tr>
			</table>
		</s:form>
		</div>
	</body>
</html>